cmake_minimum_required(VERSION 3.5)
project(MultiThread)

set(CMAKE_CXX_STANDARD 11)

SET (CMAKE_USE_RELATIVE_PATHS ON)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

include_directories(./Singleton ./Theron-6.00.02/Include ./TImer)

link_directories("./Theron-6.00.02/Lib")

#link_libraries("/home/howe/CLionProjects/MultiThread/Theron-6.00.02/Lib/libtherond.a")

link_libraries(${PROJECT_SOURCE_DIR}//Theron-6.00.02/Lib/libtherond.a)

link_libraries("/usr/local/lib/libtherond.a")

add_executable(MultiThread MultiThread-Demo.cpp Singleton/Singleton.h ThreadManager.h ThreadManager.cpp threadA.h threadA.cpp threadB.h threadB.cpp TImer/Timer.h TImer/Timer.cpp)

target_link_libraries(MultiThread -lpthread)

target_link_libraries(MultiThread -ltherond)